package com.hjp.service.impl;



import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hjp.dao.IRoleDao;
import com.hjp.model.Role;
import com.hjp.service.IRoleService;

@Service
public class RoleServiceImpl implements IRoleService {

	private IRoleDao roleDao;
		
	/**
	 * @param roleDao the roleDao to set
	 */
	@Resource
	public void setRoleDao(IRoleDao roleDao) {
		this.roleDao = roleDao;
	}

	@Override
	public void save(Role entity) {
		// TODO Auto-generated method stub
		roleDao.save(entity);		
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		roleDao.delete(id);
	}

	@Override
	public void update(Role entity) {
		// TODO Auto-generated method stub
		roleDao.update(entity);
		
	}

	@Override
	public Role getById(Long id) {
		// TODO Auto-generated method stub
		return roleDao.getById(id);
	}

	@Override
	public List<Role> getByIds(Long[] ids) {
		// TODO Auto-generated method stub
		return roleDao.getByIds(ids);
	}

	@Override
	public List<Role> findAll() {
		// TODO Auto-generated method stub
		return roleDao.findAll();
	}
	
}
